<xsl:stylesheet version="2.0" xmlns="http://www.w3.org/1999/xhtml"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
	xmlns:v="http://orbeon.org/oxf/xml/validation">
	<xsl:template match="/">


		<html>
			<head>
				<title>Manifest error</title>
			</head>
			<body>
				<h2>An error occured during validation</h2>
				<xsl:apply-templates select="node()"/>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="v:error">
		<p style="margin-left:30px;padding:4px;font-size:12pt;background-color:#FFFF99;font-style:italic">
			Line : <xsl:value-of select="@line"/>, Column : <xsl:value-of select="@column"/>
			<br/>
			<b><xsl:value-of select="@message"/></b>
		</p>
		<xsl:apply-templates/>
	</xsl:template>
	<xsl:template match="*" priority="-2">
		<div style="margin-left:30px;font-size:14pt;{if(exists(node())) then 'border-left:thin dotted black;' else ''}">
			<font color="blue">&lt;<xsl:value-of select="name()"/>
			</font>
			<xsl:apply-templates select="@*"/>
			<xsl:if test="exists(node())">
				<font color="blue">&gt;</font>
				<xsl:apply-templates/>
				<font color="blue">&lt;/<xsl:value-of select="name()"/>&gt;</font>
			</xsl:if>
			<xsl:if test="not(exists(node()))">
				<font color="blue">/&gt;</font>
			</xsl:if>
		</div>
	</xsl:template>
	<xsl:template match="@*" priority="-2">
		<xsl:text> </xsl:text>
		<font color="red">
			<xsl:value-of select="name()"/>
		</font>=<font color="#990099">"<xsl:value-of select="."/>"</font>
	</xsl:template>
</xsl:stylesheet>